PDOStatement execute(
string
$statement, [mixed[]
$args = array()]
)
|
|
Prepares and executes a SQL $statement within the connection
Parameters:
|
string |
$statement: |
|
|
mixed[] |
$args: |
|
API Tags:
Information Tags:
Interprets row data.
This default implementation returns the row itself. Override this method to add custom behaviour.
Parameters:
|
array |
$row: |
an associative array containing row values. |
API Tags:
Information Tags:
int insertAndReturnId(
string
$statement, arrray
$args, [
$serial = Null]
)
|
|
Executes an insert statement and returns the last insert id.
Parameters:
|
string |
$statement: |
|
|
arrray |
$args: |
|
|
|
$serial: |
|
API Tags:
| Return: | the last insert id for the data source |
| Access: | protected |
Information Tags:
| Todo: | Make it more transparent for PostgreSQL: it might guess serial name |
| Since: | 0.1 |
array select(
string
$statement, [array
$args = array()]
)
|
|
Executes a statement and maps the resulting rows with AbstractDAO::hydrate().
Parameters:
|
string |
$statement: |
|
|
array |
$args: |
|
API Tags:
Information Tags: